package com.baizhi.controller;

import com.baizhi.annotation.LogAnnotation;
import com.baizhi.entity.CmfzMenu;
import com.baizhi.service.CmfzMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("menu")
public class CmfzMenuController {
    @Autowired
    private CmfzMenuService cmfzMenuService;

    @RequestMapping("selectAll")
    @LogAnnotation(content="查询所有的菜单信息",type="select")
    public List<CmfzMenu> selectAll(){
        return cmfzMenuService.selectAll();
    }

}
